package networkcontroller.packet;

import networkcontroller.xml.XMLAsk;

/**
 * class for ask packet - ask hosts to send alive packets
 * 
 * @author maciek
 * 
 */
public class AskPacket extends Packet
{
	/**
	 * constructs ask packet with given host and port, and sends it
	 * 
	 * @param host
	 *            source host
	 * @param port
	 *            source port
	 */
	public AskPacket(String host, int port)
	{
		super(false, false);
		type = Packet.ASK_CODE;
		xml = new XMLAsk(host, port);
		createPacket();
		sendPacket();
	}
}
